﻿<UserControl x:Class="EasyVideoEditor.CroppingControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="324" d:DesignWidth="548">
    <UserControl.Resources>
        <ControlTemplate x:Key="ThumbDragTemplate" TargetType="Thumb">
            <Ellipse Stroke="Black" Fill="#80FFFFFF" />
        </ControlTemplate>
    </UserControl.Resources>
    <Canvas>
        <Canvas Background="#FFFFADAD" Name="canvasHolder">
            <Rectangle Fill="#32FFFFFF" Name="rectangleCropped" Cursor="SizeAll" StrokeThickness="0.5">
                <Rectangle.Stroke>
                    <ImageBrush ImageSource="/EasyVideoEditor;component/Images/alternate_stroke.png" Stretch="Fill" TileMode="Tile" Viewport="0,0,2.00080872481461,2.00080872481461" ViewportUnits="Absolute" />
                </Rectangle.Stroke>
            </Rectangle>
            <Thumb Name="thumbNW" Canvas.Left="23" Canvas.Top="23" Height="10" Width="10" DragStarted="thumb1_DragStarted" DragCompleted="thumb1_DragCompleted" DragDelta="thumb1_DragDelta" Tag="NW" Template="{StaticResource ThumbDragTemplate}" Cursor="SizeNWSE" />
            <Thumb Name="thumbSW" Canvas.Left="49" Canvas.Top="209" Height="10" Width="10" DragStarted="thumb1_DragStarted" DragCompleted="thumb1_DragCompleted" DragDelta="thumb1_DragDelta" Tag="SW" Template="{StaticResource ThumbDragTemplate}" Cursor="SizeNESW" />
            <Thumb Name="thumbNE" Canvas.Left="309" Canvas.Top="23" Height="10" Width="10" DragStarted="thumb1_DragStarted" DragCompleted="thumb1_DragCompleted" DragDelta="thumb1_DragDelta" Tag="NE" Template="{StaticResource ThumbDragTemplate}" Cursor="SizeNESW" />
            <Thumb Name="thumbSE" Canvas.Left="309" Canvas.Top="209" Height="10" Width="10" DragStarted="thumb1_DragStarted" DragCompleted="thumb1_DragCompleted" DragDelta="thumb1_DragDelta" Tag="SE" Template="{StaticResource ThumbDragTemplate}" Cursor="SizeNWSE" />
        
        </Canvas>
    </Canvas>
    <UserControl.Background>
        <ImageBrush ImageSource="/EasyVideoEditor;component/Images/transparentBack.png" Stretch="Fill" TileMode="Tile" Viewport="0,0,15.0020936072965,16.0022331811163" ViewportUnits="Absolute" />
    </UserControl.Background>
</UserControl>
